onInitializeAccessibilityEvent

Deprecated

Call onInitializeAccessibilityEvent directly. This method will be removed in a future release.

Initializes an AccessibilityEvent with information about this View which is the event source. In other words, the source of an accessibility event is the view whose state change triggered firing the event.

Example: Setting the password property of an event in addition to properties set by the super implementation:

 public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
    super.onInitializeAccessibilityEvent(event);
    event.setPassword(true);
}

If an AccessibilityDelegateCompat has been specified via calling setAccessibilityDelegate, its onInitializeAccessibilityEvent is responsible for handling this call.

Parameters

v

The View against which to invoke the method.

event

The event to initialize.

See also